package model;

import java.io.IOException;

public class KeyboardInput {
	public static void main(String[] args) throws IOException {
		//tao mang kieu byte gom 10 phan tu
		byte data[] = new byte[10];
		
		System.out.println("Enter some characters!");
		
		//nhap du lieu nhap tu ban phim vao mang data
		System.in.read(data);
		
		//xuat du lieu tu mang data ra man hinh
		for(int i = 0; i < data.length; i++) {
			System.out.print((char)data[i] + "  ");
		}
		
		System.out.println();
		
	}
	/*
	 * Chuong trinh se xuat ra ma nhi phan duoi day neu khong ep kieu
	 * null: 				13  10  0  0  0  0  0  0  0  0 
	 * a: 					97  13  10  0  0  0  0  0  0  0 
	 * abc: 				97  98  99  13  10  0  0  0  0  0  
	 * abcdef123456789: 	97  98  99  49  50  51  52  53  54  55 
	 * abc 123: 			97  98  99  32  49  50  51  13  10  0
	 */

}